package com.lbfamous;

import java.util.*;
import java.math.*;

public class BigIntegerTest {
    
    public static void main(String[] args) {
        
        Scanner in  = new Scanner(System.in);

        System.out.println("How many number do you need to draw");
        int k = in.nextInt();

        System.out.println("what is the highest number do you draw");
        int n = in.nextInt();

        BigInteger lotteryOdds = BigInteger.valueOf(1);

        for(int i = 1;i <= k;++i){
            lotteryOdds = lotteryOdds.multiply(BigInteger.valueOf(n-i+1)).divide(BigInteger.valueOf(i));
        }

        System.out.println("Your odds are 1 in " + lotteryOdds +". Good Luck");

    }
}